/*
 * @Author: ૮₍ ˙О˙₎ა
 * @Date: 2023-05-31 13:48:34
 */
// 获取医院列表分页参数接口
export interface ReqHospitalListParameters {
    page: number         //当前页
    limit: number        //获取几条数据
    hoscode?: string      //医院编号
    hosname?: string      //医院名称
    hostype?: string      //医院类型
    provinceCode?: string //省code
    cityCode?: string     //市code
    districtCode?: string //区code
    status?: 0 | 1          //状态
}
// 医院详情的接口
export interface ReqHospitalListType {
    id: string                  //医院id
    createTime: string,         //创建时间
    updateTime: string,         //更新时间
    isDeleted: number,          //是否删除
    param: {
        hostypeString: number,  // 医院等级
        fullAddress: string     //详细地址
    },
    hoscode: string,            //医院编号
    hosname: string,            //医院名称
    hostype: string,            //医院等级
    provinceCode: string,       //省code
    cityCode: string,           //市code
    districtCode: string,       //区code
    address: string,            //医院地址
    logoData: string            //医院logo
    intro: string               //医院介绍
    route: number,              //医院乘车路线
    status: number,             //医院状态  0未上线  1已上线
}

// 单个医院接口
export interface ReqHospitalListItem extends ReqHospitalListType {
    bookingRule: ReqHospitalListBookingRule
}

// 挂号接口
export interface ReqHospitalListBookingRule {
    cycle: number,          // 周期
    releaseTime: string,    // 挂号事件
    stopTime: string,       // 挂号停止时间
    quitDay: number,        // 退号提前时间
    quitTime: string,       // 退号截止时间
    rule: []                //  取号地点
}

// 获取医院详情接口
export interface ReqHospitalListDetail {
    hospital: ReqHospitalListType
    bookingRule: ReqHospitalListBookingRule

}


// 多个医院列表接口
export type ReqHospitalListS = ReqHospitalListItem[]


// 完整的医院列表返回接口
export interface ReqHospitalListComplete {
    content: ReqHospitalListS
    totalElements: number   //总条数
}

// 请求返回的省 市 区 医院数据接口
export interface ReqProvinceOrCityOrDistrictOrHospital {
    id: number,
    createTime: string,
    updateTime: string,
    isDeleted: number,
    param: object,
    parentId: number,
    name: string,
    value: string,
    dictCode: null,
    hasChildren: boolean
}
// 请求返回的多个省 市 区 医院数据接口
export type ReqProvinceOrCityOrDistrictOrHospitalS = ReqProvinceOrCityOrDistrictOrHospital[]

// 医院列表排班科室接口
export interface ReqHosListDepart {
    depcode: string,
    depname: string,
    disabled?: boolean,
    children: ReqHosListDepartList | null,
}

export type ReqHosListDepartList = ReqHosListDepart[]


// 请求获取医院排班日期参数接口
export interface ReqHospitalScheduleParm {
    page: number
    limit: number
    hoscode: string
    depcode: string
}

// 请求获取医院排班日期单个接口
export interface ReqHospitalScheduleItem {
    "workDate": string,
    "workDateMd": null,
    "dayOfWeek": string,
    "docCount": number,
    "reservedNumber": number,
    "availableNumber": number,
    "status": null
}

// 请求获取医院排班日期多个接口
export type ReqHospitalScheduleList = ReqHospitalScheduleItem[]

// 请求获取医院排班日期完整接口
export interface ReqHospitalScheduleCom {
    total: number
    bookingScheduleList: ReqHospitalScheduleList
    baseMap: {
        hosname: string
    }

}


// 请求获取医院排班日期医生的参数接口
export interface ReqHospitalFindScheduleListParm {
    hoscode: string
    depcode: string
    workDate: string
}

// 请求获取医院排班日期单个医生的接口
export interface ReqHospitalFindScheduleItem{
    "id": string,
    "createTime": string
    "updateTime": string
    "isDeleted": number,
    "param": {
        "dayOfWeek": string,
        "depname": string,
        "hosname": string
    },
    "hoscode": string
    "depcode": string
    "title": string
    "docname":string
    "skill": string
    "workDate": string
    "workTime": number,
    "reservedNumber": number,
    "availableNumber": number,
    "amount": number
    "status": number
    "hosScheduleId":string
}

// 请求获取医院排班日期完整医生的接口

export type ReqHospitalFindScheduleList=ReqHospitalFindScheduleItem[]

